<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/19
 * Time: 19:30
 */
namespace App\Services;

use App\Handlers\ApiResponse;
use App\Repositories\AppVersionUpgradesRepository;

class AppVersionUpgradesService
{
    use ApiResponse;

    protected $appVersionUpgradesRepository;

    public function __construct(AppVersionUpgradesRepository $appVersionUpgradesRepository)
    {
        $this->appVersionUpgradesRepository = $appVersionUpgradesRepository;
    }

    /**
     * 获取升级
     */
    public function getUpgradesInfo($appType)
    {
        $data = $this->appVersionUpgradesRepository->findToAppType($appType);
        return $this->responseJson(0, $data);
    }


}
